home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
man
/
cmds.fmt
/
lpc.man
< prev
next >
Wrap
Text File
|
1989-09-29
|
5KB
|
199 lines
LPC User Commands LPC
NNAAMMEE
lpc - line printer control program
SSYYNNOOPPSSIISS
llppcc [ command [ argument ... ] ]
DDEESSCCRRIIPPTTIIOONN
_L_p_c is used by the system administrator to control the
operation of the line printer system. For each line printer
configured in /etc/printcap, _l_p_c may be used to:
o+ disable or enable a printer,
o+ disable or enable a printer's spooling queue,
o+ rearrange the order of jobs in a spooling queue,
o+ find the status of printers, and their associated
spooling queues and printer dameons.
Without any arguments, _l_p_c will prompt for commands from the
standard input. If arguments are supplied, _l_p_c interprets
the first argument as a command and the remaining arguments
as parameters to the command. The standard input may be
redirected causing _l_p_c to read commands from file. Commands
may be abreviated; the following is the list of recognized
commands.
? [ command ... ]
help [ command ... ]
Print a short description of each command specified in
the argument list, or, if no arguments are given, a
list of the recognized commands.
abort { all | printer ... }
Terminate an active spooling daemon on the local host
immediately and then disable printing (preventing new
daemons from being started by _l_p_r) for the specified
printers.
clean { all | printer ... }
Remove any temporary files, data files, and control
files that cannot be printed (i.e., do not form a com-
plete printer job) from the specified printer queue(s)
on the local machine.
disable { all | printer ... }
Turn the specified printer queues off. This prevents
new printer jobs from being entered into the queue by
_l_p_r.
Sprite v1.0 April 27, 1985 1
LPC User Commands LPC
down { all | printer } message ...
Turn the specified printer queue off, disable printing
and put _m_e_s_s_a_g_e in the printer status file. The message
doesn't need to be quoted, the remaining arguments are
treated like _e_c_h_o(1). This is normally used to take a
printer down and let others know why (lpq will indicate
the printer is down and print the status message).
enable { all | printer ... }
Enable spooling on the local queue for the listed
printers. This will allow _l_p_r to put new jobs in the
spool queue.
exit
quit
Exit from lpc.
restart { all | printer ... }
Attempt to start a new printer daemon. This is useful
when some abnormal condition causes the daemon to die
unexpectedly leaving jobs in the queue. _L_p_q will
report that there is no daemon present when this condi-
tion occurs. If the user is the super-user, try to
abort the current daemon first (i.e., kill and restart
a stuck daemon).
start { all | printer ... }
Enable printing and start a spooling daemon for the
listed printers.
status { all | printer ... }
Display the status of daemons and queues on the local
machine.
stop { all | printer ... }
Stop a spooling daemon after the current job completes
and disable printing.
topq printer [ jobnum ... ] [ user ... ]
Place the jobs in the order listed at the top of the
printer queue.
up { all | printer ... }
Enable everything and start a new printer daemon.
Undoes the effects of _d_o_w_n.
FFIILLEESS
/etc/printcap printer description file
/usr/spool/* spool directories
/usr/spool/*/lock lock file for queue control
Sprite v1.0 April 27, 1985 2
LPC User Commands LPC
SSEEEE AALLSSOO
lpd(8), lpr(1), lpq(1), lprm(1), printcap(5)
DDIIAAGGNNOOSSTTIICCSS
?Ambiguous command abreviation matches more than one command
?Invalid command no match was found
?Privileged command command can be executed by root only
Sprite v1.0 April 27, 1985 3